import json
class plan_grade:
    province_name = ""
    school_name = ""
    year = ""
    major_name = ""
    batch_name = ""
    type_name = ""
    level1_name = ""
    level2_name = ""
    level3_name = ""
    special_code = ""
    require_json = ""
    require_str = ""
    num_student = 0
    max_grade = 0
    min_grade = 0
    min_rank = 0
    avg_grade = 0
    is_plan = 0
    is_grade = 0
    columns = ["province_name", "school_name", "year", "major_name", "batch_name", "type_name", "level1_name",
               "level2_name", "level3_name", "special_code", "require_json", "require_str", "num_student", "max_grade",
               "min_grade", "min_rank", "avg_grade", "is_plan", "is_grade"]

    def __init__(self, school_name=""):
        self.school_name = school_name

    def to_df(self):
        d = [self.province_name, self.school_name, self.year, self.major_name, self.batch_name, self.type_name,
             self.level1_name, self.level2_name, self.level3_name, self.special_code, self.require_json,
             self.require_str, self.num_student, self.max_grade, self.min_grade, self.min_rank, self.avg_grade, self.is_plan, self.is_grade]
        return d